package com.springboot.activiti.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping({"/login"})
public class LoginController {
	
	@RequestMapping("/login")
	public String login(HttpServletRequest request, String userId){
		request.getSession().setAttribute("loginUser", userId);
		return "index";
	}
	
}
